// 代码示例
#include <unistd.h>
#include <crypt.h>
#include <stdio.h>

int main() {
    const char *password = "zs";
    const char *salt = "$6$EcGQ/umB$"; // 使用SHA-512算法

    char *encrypted = crypt(password, salt);

    printf("password: %s\n", encrypted);

    return 0;
}
